package com.ibiaoke.marketing.service;

import com.ibiaoke.common.base.Page;
import com.ibiaoke.marketing.entity.Coupon;

import java.util.Date;
import java.util.List;

/**
 * Created by huhaichao on 2017/6/14.
 */
public interface CouponService {
    int saveCoupon(Coupon coupon);

    int updateCoupon(Coupon coupon);

    int deleteCoupon(Integer couponId);

    List<Coupon> listCoupon(String couponName, Integer useType, Date beginTime, Date endTime, Page page);

    Coupon getCoupon(Integer couponId);

    Coupon getCoupon(String couponCode);

    int updateCouponNum(Integer couponId);
}
